import java.awt.Color;


public class Test {
	public static void main(String[] args) {
		Ecran ecran = new Ecran(800, 600, Color.black);

		Cadrans cadranVitesse = Cadrans.CadranVit(100,130);
		Cadrans vario = Cadrans.CadranVario_mps(350, 130);
		Cadrans gyro = Cadrans.CadranGyro(100, 350);
		Altimetres alti = Altimetres.altimetre3aiguilles(350, 350);
		Cadrans vario2 = Cadrans.CadranVario_Kfpm(500,130);
		
		ecran.addCadran(cadranVitesse);
		ecran.addCadran(vario);
		ecran.addCadran(gyro);
		ecran.addCadran(alti);
		ecran.addCadran(vario2);
		
		ecran.getGerant().setVariosKfpm(5);
		ecran.getGerant().setVits(210);
		ecran.getGerant().setGyros(100);
		ecran.getGerant().setAltis(35800);
		ecran.getGerant().setVariosMps(4);


		MajAltitude t = new MajAltitude(ecran.getGerant());
		t.start();
		
		ecran.sauvegarder("test.txt");
		
		Ecran ecran2 = new Ecran("test.txt");

	}
}
